package main

import (
	_ "github.com/go-sql-driver/mysql"
	"push/dao"
	"push/pool"
	"push/service"
	"push/utils"
)

var config_url = "./config/config.yaml"


func main(){
	initMain()
	//service.Produce()
	//service.Lockxx()
	//service.Ceshi()
	//service.Start()
	service.StartCustomQueue()
}




func initMain() {
	utils.LoadYamlConfig(config_url)
}

func mysqlgo(){
	mysql_conn := pool.InitMysql()
	upDateMap := make(map[string]interface{})
	upDateMap["Id"] = 21
	upDateMap["Name"] = "Cook222"
	upDateMap["Nick"] = "Cook33"
	upDateMap["Country"] = ""
	upDateMap["Province"] = ""
	upDateMap["City"] = "America3"
	upDateMap["ImgUrl"] = "http://img2.imgtn.bdimg.com/it/u=3588772980,2454248748&fm=27&gp=0.jpg"
	upDateMap["Status"] = 1
	upDateMap["Create_time"] = ""
	dao.InsertStudentDao(*mysql_conn,upDateMap)
	pool.MysqlClose(*mysql_conn)
}






